package com.atguigu.yygh.hosp.controller;

import com.atguigu.yygh.RespBean;
import com.atguigu.yygh.hosp.service.HospitalSetService;
import com.atguigu.yygh.model.hosp.HospitalSet;
import net.sf.jsqlparser.expression.operators.relational.LikeExpression;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


import javax.xml.transform.Result;
import java.util.List;

@RestController
@RequestMapping("/admin/hosp/hospitalSet")
public class HospitalSetController {

    @Autowired
    private HospitalSetService hospitalSetService;


    //1 查询医院设置表所有信息
    public RespBean findAllHospitalSet(){
        List<HospitalSet> list = hospitalSetService.list();
        System.out.println(list);
        return RespBean.success("显示成功", list);
    }
}
